﻿namespace Gunningine
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.IO;
    using System.Text.RegularExpressions;

    public class FontResource : Resource
    {
        public struct Glyph
        {
            public int x, y;
            public int w, h;
            public int kern;
        }

        public Glyph[] Glyphs { get; set; }

        public string Image { get; set; }

        public int Size { get; set; }

        /// <summary>
        /// Constructor.
        /// </summary>
        public FontResource()
        {
            this.Glyphs = new Glyph[256];

            // Set defaults.
            for (int i = 0; i < 256; ++i)
            {
                Glyph g = this.Glyphs[i];

                g.x = 0;
                g.y = 0;
                g.w = 8;
                g.h = 8;
                g.kern = 0;
            }
        }
    }
}
